dxp-ux

(0 reviews)

Retrieve Account Details(TMF-666)

/billingAccount/{id}

[GET]

This operation retrieves a billing account entity used by billingAccountNumber or msisdn or client account id or BAN-CAN.

URL

https://[localhost]:[port]/dxp-ux/v1/{businessId}/billingAccount/{id}

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.
Expected one is "PR"-Puerto Rico
Y
idstringTo retrieve 'account' information provide Billing Account Number or msisdn
To retrieve 'balance' information provide account number. Example: msisdn: 17874047209,billingAccountNumber: 33541396-33542750
Y

Note:

1.To retrieve 'balance' information need to pass 'targetSystem'.

2.To retrieve 'account' information need to pass 'lob'.

namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringAn identifier for the current call chain that can be used to tie together log entries on multiple layers (e.g. client, server, mainframe). This identifier must be designed to be unique across all applications.
Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request
N
It is Mandatory for business
channelIdstringExpected value APPY
lobStringEnum: PREPAID, POSTPAID,FIXED
Expected value : PREPAID, POSTPAID
Y
targetSystemStringExpected value "aria".Y

Query Parameters

Note:

  1. To retrieve 'account' information need to pass 'extendedCharacteristics.name', 'extendedCharacteristics.value', 'type'.
namevaluedescriptionrequired
extendedCharacteristics.namestringExpected value is sourceSystemY
extendedCharacteristics.valuestringExpected value is DigitalY
typestringNeed to pass 'billingAccountNumber' or 'msisdn'Y

[GET] Retrieve Balance Response - CSG FIXED

From this operation we can fetch Auto Pay is enabled or disabled, auto-pay date and day, Delinquency status, payment status and payment method EFT or Card.

Note In the response if PaymentPlan.planType is AutoPay Enable, AutoPay Date can be displayed in the extended Characteristics else AutoPay Date cannot be displayed.

AutoPay Date Enable


{
    "id": "8211990010018869",
    "accountType": "RES",
    "description": "MARIA VICTORIA MURILLO",
    "lastModified": "2023-01-16T00:00:00.000Z",
    "name": "MARIA VICTORIA MURILLO",
    "paymentStatus": "",
    "state": "NORMAL",
    "accountBalance": [
        {
            "amount": {
                "unit": "USD",
                "value": -76.98
            },
            "balanceType": "ReceivableBalance",
            "validFor": {
                "startDateTime": "2023-01-16T00:00:00.000Z",
                "endDateTime": "2023-02-15T00:00:00.000Z"
            }
        },
        {
            "amount": {
                "unit": "USD",
                "value": 80.00
            },
            "balanceType": "LastPaymentAmount",
            "validFor": {
                "endDateTime": "2022-12-26T00:00:00.000Z"
            }
        }
    ],
    "accountRelationship": [
        {
            "relationshipType": "contains",
            "account": {
                "id": "8211990010018869",
                "description": "RES MARIA VICTORIA MURILLO",
                "name": "MARIA VICTORIA MURILLO",
                "@type": "BillingAccount"
            },
            "validFor": {
                "startDateTime": "2021-01-16T00:00:00.000Z",
                "endDateTime": "2021-02-14T00:00:00.000Z"
            }
        }
    ],
    "billStructure": {
        "cycleSpecification": {
            "name": "monthly Billing",
            "dateShift": 16,
            "frequency": "monthly"
        },
        "presentationMedia": [
            {
                "name": "Mail"
            }
        ]
    },
    "contact": [
        {
            "contactName": "MARIA VICTORIA MURILLO",
            "contactType": "Primary",
            "partyRoleType": "Owner",
            "contactMedium": [
                {
                    "mediumType": "PostalAddress",
                    "preferred": true,
                    "ulmCharacteristic": {
                        "city": "SAN JUAN",
                        "country": "USA",
                        "postCode": "009171920",
                        "street1": "279 AVE PONCE DE LEON APT 2001"
                    },
                    "characteristic": {
                        "city": "SAN JUAN",
                        "country": "USA",
                        "postCode": "00917",
                        "street1": "279 AVE PONCE DE LEON APT 2001"
                    }
                },
                {
                    "mediumType": "Phone",
                    "characteristic": {
                        "contactType": "Home",
                        "phoneNumber": "7876552030"
                    }
                },
                {
                    "mediumType": "Phone",
                    "characteristic": {
                        "contactType": "Business",
                        "phoneNumber": "9059334010"
                    }
                }
            ],
            "relatedParty": {
                "id": "6789",
                "name": "MARIA VICTORIA MURILLO",
                "role": "Owner",
                "@type": "relatedParty"
            }
        }
    ],
    "creditLimit": {
        "unit": "USD",
        "value": 100.00
    },
    "defaultPaymentMethod": {
        "id": "E",
        "name": "EFT"
    },
    "financialAccount": {
        "id": "2063",
        "accountBalance": {
            "balanceType": "ReceivableBalance",
            "amount": {
                "unit": "USD",
                "value": 16
            },
            "validFor": {
                "startDateTime": "2023-01-16T00:00:00.000Z",
                "endDateTime": "2023-02-15T00:00:00.000Z"
            }
        },
        "@referredType": "financialAccount"
    },
    "paymentPlan": [
        {
            "paymentFrequency": "01",
            "planType": "Auto Pay Enable"
        }
    ],
    "characteristic": [
        {
            "name": "DunningGroup",
            "value": "090"
        },
        {
            "name": "autoPayDate",
            "value": "2023-02-03T00:00:00.000Z"
        },
        {
            "name": "DebitDay",
            "value": "03"
        },
        {
            "name": "CreditScore",
            "value": "A"
        },
        {
            "name": "LocationId",
            "value": "00917192001084"
        }
    ],
    "relatedParty": [
        {
            "id": "1101521721766",
            "name": "MARIA VICTORIA MURILLO",
            "role": "Customer",
            "@referredType": "Customer"
        }
    ],
    "@type": "BillingAccount"
}

AutoPay Disable

{
    "id": "8211990010018869",
    "accountType": "RES",
    "description": "MARIA VICTORIA MURILLO",
    "lastModified": "2023-01-16T00:00:00.000Z",
    "name": "MARIA VICTORIA MURILLO",
    "paymentStatus": "",
    "state": "NORMAL",
    "accountBalance": [
        {
            "amount": {
                "unit": "USD",
                "value": -76.98
            },
            "balanceType": "ReceivableBalance",
            "validFor": {
                "startDateTime": "2023-01-16T00:00:00.000Z",
                "endDateTime": "2023-02-15T00:00:00.000Z"
            }
        },
        {
            "amount": {
                "unit": "USD",
                "value": 80.00
            },
            "balanceType": "LastPaymentAmount",
            "validFor": {
                "endDateTime": "2022-12-26T00:00:00.000Z"
            }
        }
    ],
    "accountRelationship": [
        {
            "relationshipType": "contains",
            "account": {
                "id": "8211990010018869",
                "description": "RES MARIA VICTORIA MURILLO",
                "name": "MARIA VICTORIA MURILLO",
                "@type": "BillingAccount"
            },
            "validFor": {
                "startDateTime": "2021-01-16T00:00:00.000Z",
                "endDateTime": "2021-02-14T00:00:00.000Z"
            }
        }
    ],
    "billStructure": {
        "cycleSpecification": {
            "name": "monthly Billing",
            "dateShift": 16,
            "frequency": "monthly"
        },
        "presentationMedia": [
            {
                "name": "Mail"
            }
        ]
    },
    "contact": [
        {
            "contactName": "MARIA VICTORIA MURILLO",
            "contactType": "Primary",
            "partyRoleType": "Owner",
            "contactMedium": [
                {
                    "mediumType": "PostalAddress",
                    "preferred": true,
                    "characteristic": {
                        "city": "SAN JUAN",
                        "country": "USA",
                        "postCode": "009171920",
                        "street1": "279 AVE PONCE DE LEON APT 2001"
                    }
                },
                {
                    "mediumType": "Phone",
                    "characteristic": {
                        "contactType": "Home",
                        "phoneNumber": "7876552030"
                    }
                }
            ],
            "relatedParty": {
                "id": "6789",
                "name": "MARIA VICTORIA MURILLO",
                "role": "Owner",
                "@type": "relatedParty"
            }
        }
    ],
    "creditLimit": {
        "unit": "USD",
        "value": 100.00
    },
    "defaultPaymentMethod": {
        "id": "E",
        "name": "EFT"
    },
    "financialAccount": {
        "id": "2063",
        "accountBalance": {
            "balanceType": "ReceivableBalance",
            "amount": {
                "unit": "USD",
                "value": 16
            },
            "validFor": {
                "startDateTime": "2023-01-16T00:00:00.000Z",
                "endDateTime": "2023-02-15T00:00:00.000Z"
            }
        },
        "@referredType": "financialAccount"
    },
    "paymentPlan": [
        {
            "paymentFrequency": "01",
        }
    ],
    "characteristic": [
        {
            "name": "DunningGroup",
            "value": "090"
        },
        {
            "name": "CreditScore",
            "value": "A"
        },
        {
            "name": "LocationId",
            "value": "00917192001084"
        }
    ],
    "relatedParty": [
        {
            "id": "1101521721766",
            "name": "MARIA VICTORIA MURILLO",
            "role": "Customer",
            "@referredType": "Customer"
        }
    ],
    "@type": "BillingAccount"
}

Response Data Model:

Each of the response parameters is detailed.

nametypedescriptionrequired
idstringBilling Account Number (Salesforce Record Id)N
accountTypestringA categorization of an account, Possible Value - RESN
descriptionstringname of the account ownerN
namestringname of the billing accountN
statestringContains the lifecycle state such as:
"voluntary disconnect",
"Non-Pay Disc",
"Chard Off",
"NORMAL"
N
paymentStatusstringThe account's delinquency status or payment status may have the following values:, Possible Delinquency status values are NORMAL, C - VOLUNTARY DISC, E - NON-PAY DISC, A - OPEN NP EQPTACT, F - OPEN NP EQPT FT, P - PEND NP SVC RES,S - PND CHG SERV WO, T - PPV RESTRICTED, U - DWNGRD-SVCS, V - OPEN VOL DISC, W - OPEN NP EQPTDIS, Z -CHARGED OFF,
OR payment status are "NORMAL","S" : Suspend, "B" : Balance is less than EFT minimum debit amount.
The API will return a single character, such as "C" or "NORMAL," as obtained from CSG. The meaning of each character is given here for reference.
N
lastModifiedstringDate of last modification of the accountN
accountBalancearrayBalances linked to the accountN
accountBalance.balanceTypestringType of the balance ; DelinquentBalance, LastPaymentAmount, ReceivableBalanceN
accountBalance.amountstringBalance amountN
accountBalance.amount.unitstringUSDN
accountBalance.validForobjectA period, either as a deadline (endDateTime only) a startDateTime only, or bothN
accountBalance.validFor.endDateTimedatetimeEnd of the time period, using ISO 8601 formatN
accountBalance.validFor.startDateTimedatetimeStart of the period, using ISO 8601 format. If you define a start, you must also define an endN
accountRelationshiparraySignificant connection between accounts. For instance an aggregating account for a list of shop branches each having its billing accountN
accountRelationship.relationshipTypestringType of relationship.N
accountRelationship.accountobjectAn account may be a party account or a financial account.N
accountRelationship.account.idstringUnique identifier Id of the EntityDescriptionRef.N
accountRelationship.account.descriptionstringDetailed description of the EntityDescriptionRefN
accountRelationship.account.namestringName of the account.N
accountRelationship.account.@typestringWhen sub-classing, this defines the sub-class entity nameN
accountRelationship.validFor.endDateTimedatetimeEnd of the time period, using ISO 8601 formatN
accountRelationship.validFor.startDateTimedatetimeStart of the period, using ISO 8601 format. If you define a start, you must also define an endN
billStructureobjectThe structure of the bill for party accounts (billing or settlement).N
billStructure.cycleSpecificationobjectAn attachment by value or by reference.N
billStructure.cycleSpecification.namestringExpected value
"monthly Billing"
"bi-monthly billing"
N
billStructure.cycleSpecification.dateShiftstringAn offset of a billing/settlement date. The offset is expressed as number of days with regard to the start of the billing/settlement period.N
billStructure.cycleSpecification.frequencystringPossible values are "monthly" or "bi-monthly billing".N
billStructure.presentationMedia.namestringPossible values are
"Mail"
"Email
N
contactarrayContact point for a given account and accessed via some contact medium.N
contact.namestringname of the contactN
contact.partyRoleTypestringIdentifies what kind of party role type is linked to the contact Ex: OwnerN
contact.contactMediumarrayIndicates the contact medium that could be used to contact the party. Possible values areN
contact.contactMedium.mediumTypestringType of the contact medium, possible values are: "Phone" or "PostalAddress".N
contact.contactMedium.preferredbooleanIf true, it indicates that it is the preferred contact medium. Ex: true,falseN
contact.contactMedium.characteristicobjectAny additional characteristic(s) of this contact medium.N
contact.contactMedium.characteristic.contactTypestringif mediumType = "Phone" then possible values are
"Home",
"Business"
N
contact.contactMedium.characteristic.citystringThe cityN
contact.contactMedium. characteristic.countrystringThe countryN
contact.contactMedium. characteristic.postCodestringPostcodeN
contact.contactMedium. characteristic.stateOrProvincestringState or provinceN
contact.contactMedium. characteristic.street1stringDescribes the streetN
contact.contactMedium. characteristic.phoneNumberstringphone number of the customerN
contact.contactMedium. characteristic.emailAddressstringemail address of the customerN
contact.relatedPartyobjectRelated Entity referenceN
contact.relatedParty.idstringlast 4 digits of SSN numberN
contact.relatedParty.namestringname of the customer accountN
contact.relatedParty.@typestringhard-coded as "relatedParty"N
creditLimitobjectThe maximum amount of money that may be charged to an accountN
creditLimit.unitstringUSDN
creditLimit.valueintegervalueN
defaultPaymentMethodobjectThe maximum amount of money that may be charged on an accountN
defaultPaymentMethod.idstringUnique identifier ID of the default payment method. Possible values are
"C"
"E"
""
N
defaultPaymentMethod.nameintegerPayment Method Name.Possible values are
"Credit Card"
"EFT"
"Non Default Payment Method"
N
financialAccountarrayAccountReceivable reference. An account of money owed by a party to another entity in exchange for goods or services that have been delivered or used. An account receivable aggregates the amounts of one or more party accounts (billing or settlement) owned by a given party.N
financialAccount.idstringHard coded as "2063"N
financialAccount.accountBalanceobject
financialAccount.accountBalance.balanceTypestringType of the balance ; DelinquentBalance, LastPaymentAmount, ReceivableBalanceN
financialAccount.accountBalance.amountstringBalance amountN
financialAccount.accountBalance.amount.unitstringUSDN
financialAccount.accountBalance.validForobjectA period, either as a deadline (endDateTime only) a startDateTime only, or bothN
financialAccount.accountBalance.validFor.endDateTimedatetimeEnd of the time period, using ISO 8601 formatN
financialAccount.accountBalance.validFor.startDateTimedatetimestart of the time periodN
financialAccount.@referredTypestringpossible value is "financialAccount"N
paymentPlanarrayA list of payment plansN
paymentPlan.paymentFrequencystringFrequency of the payments, such as monthly and bimonthlyN
paymentPlan.planTypestringstatus of autopsy. possible values are
"Auto Pay Enable" ,
"Auto Pay Disable
N
characteristicarrayDescribes a given characteristic of an object or entity through a name/value pair.N
characteristics.namestringName of the characteristic.
"LocationId"
"DunningGroup"
"DelinquencyDays"
"autoPayDate
"DebitDay"
"CreditScore"
N
characteristics.valuestringValue of the characteristicN
relatedPartyarrayRelated Entity referenceN
relatedParty.idstringCSG Customer IdN
relatedParty.namestringCustomer nameN
relatedParty.rolestringrole of the party. "customer"N
relatedParty.@referredTypestringReference type. "customer"N
@typestringType of the reference. "BillingAccount"N
[ 200 ] PREPAID Salesforce

Retrieving account details and autopay status for a PREPAID account from Salesforce using billingAccountNumber:

Below is the response:

{
    "id": "31515070-31513558",
    "href": "https://cwc--propeac01.sandbox.my.salesforce.com/0016300001MwDHbAAN",
    "ratingType": "Prepaid",
    "name": "Connection Fee Prepaid",
    "state": "Active",
    "contact": [
        {
            "contactType": "BillingAddress",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "city": "San Juan",
                        "country": "US",
                        "postCode": "00921",
                        "stateOrProvince": "PR",
                        "street1": "767 Calle 31 S O",
                        "emailAddress": "mobileconnectionfee@gmail.com"
                    }
                }
            ]
        },
        {
            "contactType": "customerAccount",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "city": "San Juan",
                        "country": "US",
                        "postCode": "00921",
                        "stateOrProvince": "PR",
                        "street1": "767 Calle 31 S O"
                    }
                }
            ],
            "relatedParty": {
                "id": "0016300001MwDHaAAN",
                "name": "Connection Fee Prepaid",
                "@type": "CustomerAccountRef"
            }
        },
        {
            "name": "Connection Fee Prepaid",
            "contactType": "Primary",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "phoneNumber": "3765786457",
                        "emailAddress": "mobileconnectionfee@gmail.com"
                    }
                }
            ]
        }
    ],
    "paymentPlan": [
        {
            "planType": "Auto Pay disabled",
            "paymentMethod": {
                "id": "a6I63000000DV0xEAG"
            },
            "extendedCharacteristic": [
                {
                    "name": "methodType",
                    "value": "BrainTreeToken"
                },
                {
                    "name": "externalCustomerIdentifier",
                    "value": "639338417"
                },
                {
                    "name": "token",
                    "value": "cGF5bWVudG1ldGhvZF9jY19hOWFxemd0aA"
                },
                {
                    "name": "externalPaymentMethodIdentifier",
                    "value": "2"
                },
                {
                    "name": "isPrimary",
                    "value": "Y"
                }
            ]
        }
    ],
    "billStructure": {
        "presentationMedia": [
            {
                "name": "eBill disabled"
            }
        ]
    },
    "extendedCharacteristics": [
        {
            "name": "msisdn",
            "valueType": "array",
            "value": [
                "12112221058"
            ]
        }
    ],
    "@type": "BillingAccount",
    "relatedParty": [
        {
            "id": "0016300001MwDHbAAN",
            "@type": "SalesforceBillingAccountRef"
        }
    ]
}

Response Data Model:

Each of the request parameters is detailed.

nametypedescriptionrequired
idstringBilling Account Number (Salesforce Record Id)N
hrefstringURL reference of the billing account in SalesforceN
ratingTypestringpayment type of the billing account and the options are:
Prepaid
Postpaid
N
namestringname of the billing accountN
statestringStatus of the account:
Active
Suspend
Disconnected
N
autopayEnabledstringindicator of the Auto Pay enabledN
extendedCharacteristicsarrayA list of characteristics that characterize this billingAccountN
extendedCharacteristics.namestringName of the characteristic Example: methodType,token,externalPaymentMethodIdentifierN
extendedCharacteristics.valuestringThe value of the characteristic Example: BrainTreeToken,639338417,2N
contactarrayContact point for a given account and accessed via some contact medium.N
contact.partyRoleTypestringIdentifies what kind of party role type is linked to the contact Ex:OwnerN
contact.contactMediumarrayIndicates the contact medium that could be used to contact the party.N
contact.contactMedium.preferredbooleanIf true, indicates that is the preferred contact medium. Ex: true,falseN
contact.contactMedium.characteristicobjectAny additional characteristic(s) of this contact medium.N
contact.contactMedium.characteristic.citystringThe cityN
contact.contactMedium. characteristic.countrystringThe countryN
contact.contactMedium. characteristic.postCodestringPostcodeN
contact.contactMedium. characteristic.stateOrProvincestringState or provinceN
contact.contactMedium. characteristic.street1stringDescribes the streetN
contact.contactMedium. characteristic.phoneNumberstringphone number of the customerN
contact.contactMedium. characteristic.emailAddressstringemail address of the customerN
contact.relatedPartyobjectRelated Entity referenceN
contact.relatedParty.idstringCustomer Account Number (Salesforce Record Id)N
contact.relatedParty.namestringname of the Customer accountN
contact.relatedParty.@typestringtype of referenceN
contact.namestringname of the contactN
paymentPlanarrayA list of payment plansN
paymentPlan.planTypestringstatus of autopayN
paymentPlan.paymentMethodobjectA payment method referenceN
paymentPlan.paymentMethod.idstringinternal reference id of the payment method in SalesforceN
paymentPlan.extendedCharacteristicsarrayA list of characteristics that characterize the payment method detailsN
paymentPlan.extendedCharacteristics.namestringName of the characteristicN
paymentPlan.extendedCharacteristics.valuestringValue of the characteristicN
@typestringType of the referenceN
relatedPartyarrayRelated Entity referenceN
relatedParty.idstringSalesforce reference Id of the billing accountN
relatedParty.@typestringReferencetypeN
relatedParty.idstringconsumerPIN valueN
relatedParty.rolestringrole of the partyN
relatedParty.@typestringReference typeN

Retrieving account details for a PREPAID account from Salesforce using MSISDN:

Below is the response:

{
    "contact": [
        {
            "name": "GUILHERME CLEVELAND",
            "contactType": "Secondary",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "city": "San Juan",
                        "country": "Colombia",
                        "postCode": "00907",
                        "stateOrProvince": "PR",
                        "street1": "1479 Ashford Avenue",
                        "phoneNumber": "+55 24 2104 8708",
                        "emailAddress": "guilherme.cleveland@orange.com"
                    }
                }
            ]
        }
    ],
    "billStructure": {
        "presentationMedia": [
            {
                "name": "eBill disabled"
            }
        ]
    },
    "@type": "BillingAccount",
    "relatedParty": [
        {
            "@type": "SalesforceBillingAccountRef"
        }
    ]
}

Response Data Model:

nametypedescriptionrequired
contactarrayContact point for a given account and accessed via some contact medium.N
contact.contactTypestringIndicates the type of contactN
contact.contactMediumarrayIndicates the contact medium that could be used to contact the party.N
contact.contactMedium.preferredbooleanIf true, indicates that is the preferred contact medium.N
contact.contactMedium.characteristicobjectAny additional characteristic(s) of this contact medium.N
contact.contactMedium.characteristic.citystringThe cityN
contact.contactMedium. characteristic.countrystringThe countryN
contact.contactMedium. characteristic.postCodestringPostcodeN
contact.contactMedium. characteristic.stateOrProvincestringState or provinceN
contact.contactMedium. characteristic.street1stringDescribes the streetN
contact.contactMedium. characteristic.phoneNumberstringphone number of the customerN
contact.contactMedium. characteristic.emailAddressstringemail address of the customerN
contact.namestringname of the contactN
@typestringType of the referenceN
relatedPartyarrayRelated Entity referenceN
relatedParty.idstringSalesforce reference Id of the billing accountN
relatedParty.@typestringReferencetypeN
billStructureObjectN
billStructure.presentationMediaArrayN
billStructure.presentationMedia.nameStringebill flag indicatorN
[ 200 ] POSTPAID Salesforce

Retrieving account details and autopay status for a POSTPAID account from Salesforce using billingAccountNumber:

Below is the response:

{
    "id": "21003695-21003694",
    "href": "https://cwc--propeac01.sandbox.my.salesforce.com/0016300001MhqRXAAZ",
    "ratingType": "Postpaid",
    "name": "Prakash Prakash",
    "state": "Active",
    "contact": [
        {
            "contactType": "BillingAddress",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "city": "San Juan",
                        "country": "US",
                        "postCode": "00907",
                        "stateOrProvince": "PR",
                        "street1": "1479 Ashford Avenue",
                        "emailAddress": "pra@com.com"
                    }
                }
            ]
        },
        {
            "contactType": "customerAccount",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "city": "San Juan",
                        "country": "US",
                        "postCode": "00907",
                        "stateOrProvince": "PR",
                        "street1": "1479 Ashford Avenue"
                    }
                }
            ],
            "relatedParty": {
                "id": "0016300001MhqRWAAZ",
                "name": "Prakash Prakash",
                "@type": "CustomerAccountRef"
            }
        },
        {
            "name": "Prakash Prakash",
            "contactType": "Primary",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "phoneNumber": "7655454545",
                        "emailAddress": "pra@com.com"
                    }
                }
            ]
        }
    ],
     "paymentPlan": [
        {
            "planType": "Auto Pay enabled",
            "paymentMethod": {
                "id": "a6I63000000DTq7EAG"
            },
            "extendedCharacteristic": [
                {
                    "name": "methodType",
                    "value": "BrainTreeToken"
                },
                {
                    "name": "externalCustomerIdentifier",
                    "value": "163429995"
                },
                {
                    "name": "token",
                    "value": "cGF5bWVudG1ldGhvZF9jY18yZ3NjZ2Zzeg"
                },
                {
                    "name": "isPrimary",
                    "value": "Y"
                }
            ]
        }
    ],
    "billStructure": {
        "presentationMedia": [
            {
                "name": "eBill disabled"
            }
        ]
    },
    "extendedCharacteristics": [
        {
            "name": "msisdn",
            "valueType": "array",
            "value": [
                "17874031934"
            ]
        }
    ],
    "@type": "BillingAccount",
    "relatedParty": [
        {
            "id": "0016300001MhqRXAAZ",
            "@type": "SalesforceBillingAccountRef"
        }
    ]
}

Response Data Model:

Each of the request parameters is detailed.

nametypedescriptionrequired
idstringBilling Account Number (Salesforce Record Id)N
hrefstringURL reference of the billing account in SalesforceN
ratingTypestringpayment type of the billing account and the options are:
Prepaid
Postpaid
N
namestringname of the billing accountN
statestringStatus of the account:
Active
Suspend
Disconnected
N
autopayEnabledstringindicator of the Auto Pay enabledN
extendedCharacteristicsarrayA list of characteristics that characterize this billingAccountN
extendedCharacteristics.namestringName of the characteristicN
extendedCharacteristics.valuestringThe value of the characteristicN
contactarrayContact point for a given account and accessed via some contact medium.N
contact.partyRoleTypestringIdentifies what kind of party role type is linked to the contactN
contact.contactMediumarrayIndicates the contact medium that could be used to contact the party.N
contact.contactMedium.preferredbooleanIf true, indicates that is the preferred contact medium.N
contact.contactMedium.characteristicobjectAny additional characteristic(s) of this contact medium.N
contact.contactMedium.characteristic.citystringThe cityN
contact.contactMedium. characteristic.countrystringThe countryN
contact.contactMedium. characteristic.postCodestringPostcodeN
contact.contactMedium. characteristic.stateOrProvincestringState or provinceN
contact.contactMedium. characteristic.street1stringDescribes the streetN
contact.contactMedium. characteristic.phoneNumberstringphone number of the customerN
contact.contactMedium. characteristic.emailAddressstringemail address of the customerN
contact.relatedPartyobjectRelated Entity referenceN
contact.relatedParty.idstringCustomer Account Number (Salesforce Record Id)N
contact.relatedParty.namestringname of the Customer accountN
contact.relatedParty.@typestringtype of referenceN
contact.namestringname of the contactN
paymentPlanarrayA list of payment plansN
paymentPlan.planTypestringstatus of autopayN
paymentPlan.paymentMethodobjectA payment method referenceN
paymentPlan.paymentMethod.idstringinternal reference id of the payment method in SalesforceN
paymentPlan.extendedCharacteristicsarrayA list of characteristics that characterize the payment method detailsN
paymentPlan.extendedCharacteristics.namestringName of the characteristicN
paymentPlan.extendedCharacteristics.valuestringValue of the characteristicN
@typestringType of the referenceN
relatedPartyarrayRelated Entity referenceN
relatedParty.idstringSalesforce reference Id of the billing accountN
relatedParty.@typestringReferencetypeN
relatedParty.idstringconsumerPIN valueN
relatedParty.rolestringrole of the partyN
relatedParty.@typestringReference typeN

Retrieving account details and autopay status for a POSTPAID account from Salesforce using MSISDN:

Below is the response:

{
    "href": "https://cwc--qapeac.sandbox.my.salesforce.com/0013K000012fb7dQAA",
    "ratingType": "Postpaid",
    "name": "Hilda C. Alvarez",
    "state": "Active",
    "characteristic": [
        {
            "value": "Y",
            "name": "autoPaymentEnabled"
        }
    ],
    "contact": [
        {
            "contactType": "BillingAddress",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "city": "San Juan",
                        "country": "US",
                        "postCode": "00911",
                        "stateOrProvince": "PR",
                        "street1": "110 Calle del Parque",
                        "emailAddress": "testconsentaddline5@care.com"
                    }
                }
            ]
        },
        {
            "contactType": "customerAccount",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "city": "San Juan",
                        "country": "US",
                        "postCode": "00911",
                        "stateOrProvince": "PR",
                        "street1": "110 Calle del Parque"
                    }
                }
            ],
            "relatedParty": {
                "id": "23540074",
                "name": "Hilda C. Alvarez",
                "@type": "CustomerAccountRef"
            }
        },
        {
            "name": "Hilda Alvarez",
            "contactType": "Primary",
            "contactMedium": [
                {
                    "preferred": true,
                    "characteristic": {
                        "phoneNumber": "13453454364",
                        "emailAddress": "testconsentaddline5@care.com"
                    }
                }
            ]
        }
    ],
    "paymentPlan": [
        {
            "paymentMethod": {
                "id": "PM-a6I3K0000009JgzUAE"
            },
            "extendedCharacteristic": [
                {
                    "name": "methodType",
                    "value": "BrainTreeToken"
                },
                {
                    "name": "externalCustomerIdentifier",
                    "value": "19553474953"
                },
                {
                    "name": "token",
                    "value": "cGF5bWVudG1ldGhvZF9jY184amYzaDVneA"
                },
                {
                    "name": "externalPaymentMethodIdentifier",
                    "value": "PM-a6I3K0000009JgzUAE"
                },
                {
                    "name": "isPrimary",
                    "value": "Y"
                }
            ]
        },
        {
            "paymentMethod": {
                "id": "PM-MWJkZmQ4ZDUtYjRlNS"
            },
            "extendedCharacteristic": [
                {
                    "name": "methodType",
                    "value": "BrainTreeToken"
                },
                {
                    "name": "externalCustomerIdentifier",
                    "value": "88822287153"
                },
                {
                    "name": "token",
                    "value": "cGF5bWVudG1ldGhvZF9jY19xOXpleWd0cg"
                },
                {
                    "name": "externalPaymentMethodIdentifier",
                    "value": "PM-MWJkZmQ4ZDUtYjRlNS"
                },
                {
                    "name": "isPrimary",
                    "value": "N"
                }
            ]
        },
        {
            "paymentMethod": {
                "id": "PM-a6I3K0000009JiMUAU"
            },
            "extendedCharacteristic": [
                {
                    "name": "methodType",
                    "value": "Bank Account"
                },
                {
                    "name": "externalCustomerIdentifier",
                    "value": "89213959036"
                },
                {
                    "name": "token",
                    "value": "cGF5bWVudG1ldGhvZF91c2JfajBzcDJqOWg"
                },
                {
                    "name": "externalPaymentMethodIdentifier",
                    "value": "PM-a6I3K0000009JiMUAU"
                },
                {
                    "name": "isPrimary",
                    "value": "N"
                }
            ]
        }
    ],
    "billStructure": {
        "presentationMedia": [
            {
                "name": "eBill disabled"
            }
        ]
    },
    "extendedCharacteristics": [
        {
            "name": "msisdn",
            "valueType": "array",
            "value": [
                "12218000634",
                "12218000752"
            ]
        }
    ],
    "@type": "BillingAccount",
    "relatedParty": [
        {
            "id": "0013K000012fb7dQAA",
            "@type": "SalesforceBillingAccountRef"
        },
        {
            "id": "1234",
            "role": "CustomerSecurity",
            "@type": "ConsumerPIN"
        }
    ]
}

Response Data Model:

Each of the request parameters is detailed.

nametypedescriptionrequired
hrefstringURL reference of the billing account in SalesforceN
ratingTypestringpayment type of the billing account and the options are:
Prepaid
Postpaid
N
namestringname of the billing accountN
statestringStatus of the account:
Active
Suspend
Disconnected
N
autopayEnabledstringindicator of the Auto Pay enabledN
extendedCharacteristicsarrayA list of characteristics that characterize this billingAccountN
extendedCharacteristics.namestringName of the characteristicN
extendedCharacteristics.valuestringThe value of the characteristicN
contactarrayContact point for a given account and accessed via some contact medium.N
contact.partyRoleTypestringIdentifies what kind of party role type is linked to the contactN
contact.contactMediumarrayIndicates the contact medium that could be used to contact the party.N
contact.contactMedium.preferredbooleanIf true, indicates that is the preferred contact medium.N
contact.contactMedium.characteristicobjectAny additional characteristic(s) of this contact medium.N
contact.contactMedium.characteristic.citystringThe cityN
contact.contactMedium. characteristic.countrystringThe countryN
contact.contactMedium. characteristic.postCodestringPostcodeN
contact.contactMedium. characteristic.stateOrProvincestringState or provinceN
contact.contactMedium. characteristic.street1stringDescribes the streetN
contact.contactMedium. characteristic.phoneNumberstringphone number of the customerN
contact.contactMedium. characteristic.emailAddressstringemail address of the customerN
contact.relatedPartyobjectRelated Entity referenceN
contact.relatedParty.idstringCustomer Account Number (Salesforce Record Id)N
contact.relatedParty.namestringname of the Customer accountN
contact.relatedParty.@typestringtype of referenceN
contact.namestringname of the contactN
paymentPlanarrayA list of payment plansN
paymentPlan.paymentMethodobjectA payment method referenceN
paymentPlan.paymentMethod.idstringinternal reference id of the payment method in SalesforceN
paymentPlan.extendedCharacteristicsarrayA list of characteristics that characterize the payment method detailsN
paymentPlan.extendedCharacteristics.namestringName of the characteristicN
paymentPlan.extendedCharacteristics.valuestringValue of the characteristicN
@typestringType of the referenceN
relatedPartyarrayRelated Entity referenceN
relatedParty.idstringSalesforce reference Id of the billing accountN
relatedParty.@typestringReferencetypeN
relatedParty.idstringconsumerPIN valueN
relatedParty.rolestringrole of the partyN
relatedParty.@typestringReference typeN
[ 200 ] ARIA Retrieve Balance Response

Retrieve the client account balance from Aria:

Below is the response:

{
    "@type": "BillingAccount",
    "relatedParty": [
        {
            "id": "123456-MA",
            "@type": "MigratedAccountRef",
            "name": "BAN"
        }
    ],
    "accountBalance": [
        {
            "amount": {
                "unit": "USD",
                "value": 0
            }
        }
    ],
    "billStructure": {
        "cycleSpecification": {
            "paymentDueDateOffset": 0
        }
    },
   "extendedCharacteristics": [
        {
            "name": "billDate",
            "value": "2023-03-10"
        },
        {
            "name": "autoPayDate",
            "value": "2023-03-10"
        }
    ]
}

Response data model:

nametypedescriptionrequired
@typestringWhen sub-classing, this defines the sub-class entity name and value refers to "BillingAccount"Y
accountBalanceobject ArrayBalances linked to the accountY
accountBalance.amountobjectBalance amountY
accountBalance.amount.unitstringCurrency (ISO4217 norm uses 3 letters to define the currency)Y
accountBalance.amount.valuenumber, floatA positive floating point numberY
relatedPartyArrayRelated Entity referenceY
relatedParty.idstringAria reference Id of the billing accountY
relatedParty.@typestringReferencetypeY
relatedParty.namestringrelatedParty NameY
billStructureObjectY
billStructure.cycleSpecificationobjectY
billStructure.cycleSpecification.paymentDueDateOffsetnumbernumber of days between bill date and current dateY
extendedCharacteristicsarrayextendedCharacteristics. Example: billDate, autoPayDateY
extendedCharacteristics.valuestringname of the characteristicsY
extendedCharacteristics.namestringvalue of the characteristicsY

Possible Error Scenarios: :

IF WE ARE PASSING INVALID MSISDN IN URIPARAMS
{
    "errors": [
        {
            "code": 400,
            "message": "SF:GET_BillingAccount_BY_ID",
            "description": "MSISDN provided is not valid"
        }
    ]
}
INVALID URL
{
    "errors": [
        {
            "code": 404,
            "message": "APIKIT:NOT_FOUND",
            "description": "/PR/billingAccounts/CUSTOMER_8011"
        }
    ]
}
INVALID CHANNELID
{
    "errors": [
        {
            "code": 501,
            "message": "Not implemented",
            "description": "Operation GET for Business Id: PR and channelId:ECOM not implemented"
        }
    ]
}
Expected values for CSG FIXED Auto Pay

For paymentStatus below are expected fields Delinquency Status or Payment Status

Delinquency Status

Mule Field ValueBSS Field ValueDescription
NORMAL“” or nullNORMAL
CCVOLUNTARY DISC
EENON-PAY DISC
AAOPEN NP EQPTACT
FFOPEN NP EQPT FT
PPPEND NP SVC RES
SSPND CHG SERV WO
TTPPV RESTRICTED
UUDWNGRD-SVCS
VVOPEN VOL DISC
WWOPEN NP EQPTDIS
ZZCHARGED OFF

Payment Status

Mule Field ValueBSS Field ValueDescription
NORMAL“” or nullNORMAL
SSSuspended
BBBalance is less than EFT minimum debit amount
DDDebit Error
EEPrenote Error
GGEFT debit had been sent to ACH processor
PPPrenote Error
WWWaiting

Reviews